package com.redxiii.spike.pmi.command;

import com.redxiii.spike.api.command.CommandFactory;
import com.redxiii.spike.api.communication.CommunicationService.DefaultMsgs;
import com.redxiii.spike.api.message.ImMessage;
import com.redxiii.spike.pmi.HandlerSession;
import com.redxiii.spike.util.command.InternetCommand;
import com.redxiii.spike.util.message.BasicMsgInterpreter;

/**
 * @author Daniel Filgueiras
 * 25/05/2011
 */
@CommandFactory(BasicMsgInterpreter.class)
public class SearchExternalCommands extends InternetCommand {

	@Override
	public boolean proccess(ImMessage message) {
		
		HandlerSession.getCommandLoader().loadExternalLibrary();
		
		service.reply(message, DefaultMsgs.Accepted);
		
		return true;
	}

}
